<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>设置四条边框的宽度</title>
</head>

<style>
    .test{padding:10px;border-width:1px;border-style:solid;border-color:#000;}
    .test2{margin-top:10px;padding:10px;border-width:1px 5px;border-style:solid;border-color:#000 #f00;}
    .test3{margin-top:10px;padding:10px;border-width:1px 5px 10px;border-style:solid;border-color:#000 #f00 #090;}
    .test4{margin-top:10px;padding:10px;border-width:1px 5px 10px 15px;border-style:solid;border-color:#000 #f00 #090 #0ff;}
    </style>
    </head>
    <p>段落</p>

</html>